package org.example.chapter3;

import java.util.Scanner;

public class TestBooleanOperators {
    public static void main(String[] args) {
        Scanner keyboard = new Scanner(System.in);
        System.out.println("Enter an integer: ");
        int number = keyboard.nextInt();
        if(number%2 == 0 && number%3 == 0 ){
            System.out.println(number + " is divisible by 2 and 3");
        }
        if(number%2 == 0 || number%3 == 0 ){
            System.out.println(number + " is divisible by 2 or 3");
        }
        if(number % 2 == 0 ^ number % 3 == 0 ){
            System.out.println(number + " is divisible by 2 or 3, but not both.");
        }
    }
}
